Part Number Hot Search : 
R2000 W29EE 2SB12 A1374 59004P SB510 LBN57901 APL78L05
Product Description
Full Text Search
 

To Download ATUC128D3-14 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  features ? high performance, low power 32-bit avr ? microcontroller ? compact single-cycle risc instruct ion set including dsp instructions ? read-modify-write in structions and atomic bit manipulation ? performance ? up to 61 dmips running at 48mhz from flash (1 flash wait state) ? up to 34 dmips running at 24mhz from flash (0 flash wait state) ? multi-hierarchy bus system ? high-performance data transfers on separate buses for increased performance ? 7 peripheral dma channels impro ve speed for peripheral communication ? internal high-speed flash ? 128kbytes, and 64kbytes versions ? single-cycle access up to 24mhz ? prefetch buffer optimizing instruction execution at maximum speed ? 4ms page programming time and 8ms full-chip erase time ? 100,000 write cycles, 15-year data retention capability ? flash security locks and user defined configuration area ? internal high-speed sram, single-cycle access at full speed ?16kbytes ? interrupt controller (intc) ? autovectored low latency interrupt service with prog rammable priority ? external interrupt controller (eic) ? system functions ? power and clock manager ? sleepwalking ? power saving control ? internal system rc oscillator (rcsys) ? 32 khz oscillator ? clock failure detection ? one multipurpose oscillator and two phase locked loop (pll) ? windowed watchdog timer (wdt) ? asynchronous timer (ast) with real-time clock capability ? counter or calendar mode supported ? frequency meter (freqm) for accurate measuring of clock frequency ? universal serial bus (usb) ? device 2.0 full speed and low speed ? flexible end-point configuration and management ? on-chip transceivers including pull-ups ? three 16-bit timer/counter (tc) channels ? external clock inputs, pwm, capture and various counting capabilities ? 7 pwm channels (pwma) ? 12-bit pwm up to 150mhz source clock ? three universal synchronous/asynchronous receiver/transmitters (usart) ? independent baudrate generator, support for spi ? support for hardware handshaking ? one master/slave serial peripheral in terfaces (spi) with chip select signals ? up to 15 spi slaves can be addressed 32133d?11/2011 32-bit avr ? microcontroller atuc128d3 atuc64d3 atuc128d4 atuc64d4 summary
2 32133d?11/2011 uc3d ? one master and one slave two-wire interfaces (twi), 400kbit/s i 2 c-compatible ? one 8-channel analog-to-digital converter (adc) ? one inter-ic sound controller (iisc) with stereo capabilities ? autonomous capacitive touch button (qtouch ? ) capture ? up to 25 touch buttons ?qwheel ? and qslide ? compatible ? qtouch ? library support ? capacitive touch buttons , sliders, and wheels ?qtouch ? and qmatrix ? acquisition ? hardware assisted qtouch ? acquisition ? one programmable glue logic controller(gloc) for general purpose pcb design ? on-chip non-intrusive debug system ? nexus class 2+, runtime control ?awire ? single-pin programming and debug interface muxed with reset pin ? 64-pin and 48-pin tqfp/qfn (51 and 35 gpio pins) ? four high-drive i/o pins ? single 3.3v power supply or dual 1.8v-3.3v power supply
3 32133d?11/2011 uc3d 1. description the uc3d is a complete system-on-chip micr ocontroller based on the avr32uc risc proces- sor running at frequencies up to 48mhz. avr32uc is a high-performance 32-bit risc microprocessor core, designed for cost-sensitive embedded applications, with particular empha- sis on low power consumption, high code density, and high performance. the processor implements a fast and flexible interrupt controller for supporting modern operat- ing systems and real-time operating systems. higher computation capability is achieved using a rich set of dsp instructions. the peripheral direct memory access (dma) controller enables data transfers between periph- erals and memories without processor involvemen t. the peripheral dma controller drastically reduces processing overhead when transfer ring continuous and large data streams. the power manager improves design flexibility and security. power monitoring is supported by on-chip power-on reset (por), and brown-out dete ctor (bod). the devi ce features several oscillators, such as oscillator 0 (osc0), 32 khz oscillator and system rc oscillator (rcsys), and two phase lock loop (pll). eith er of these oscillators/plls ca n be used as source for the system clock. the watchdog timer (wdt) will reset the device unless it is periodically serviced by the soft- ware. this allows the device to recover from a condition that has c aused the system to be unstable. the asynchronous timer (ast) combined with th e 32khz crystal oscillator supports powerful real-time clock capabilities, with a maximum timeou t of up to 136 years. the ast can operate in counter mode or ca lendar mode. the 32khz cryst al oscillator can operate in a 1- or 2-pin mode, trading pin usage and accuracy. the frequency meter (freqm) allows accurate me asuring of a clock frequency by comparing it to a known reference clock. the full-speed usb 2.0 device interface suppor ts several usb classes at the same time thanks to the rich end-point configuration. the device includes three identical 16-bit time r/counter (tc) channels. each channel can be independently programmed to perform frequency me asurement, event counting, interval mea- surement, pulse generation, delay timing, and pulse width modulation. the pulse width modulation controller (pwma) provides 12-bit pwm channels which can be synchronized and controlled from a common timer. seven pwm channels are available, enabling applications that require multiple pwm outputs, such as lcd backlight control. the pwm channels can operate independently, with duty cycles set independently from each other, or in interlinked mode, with multiple channels ch anged at the same time. the uc3d also features many communication interfaces for communication intensive applica- tions. in addition to standard serial interfaces like usart, spi or twi, usb is available. the usart supports different communi cation modes, like spi mode. a general purpose 8-channel adc is provided; it features a fully configurable sequencer that handles many conversions. window mode allows each adc channel to be used like a simple analog comparator. the inter-ic sound controller (iisc) provides easy access to digital audio interfaces following i2s stereo standard.
4 32133d?11/2011 uc3d the capacitive touch (cat) module senses touch on external capacitive touch sensors, using the qtouch ? technology. capacitive t ouch sensors use no extern al mechanical components, unlike normal push buttons, and therefore demand less maintenance in the user application. the cat module allows up to 25 touch sensors. one touch sensor can be configured to operate autonomously without software interaction,al lowing wakeup from sleep modes when activated. atmel also offers the qtouch library for em bedding capacitive touc h buttons, sliders, and wheels functionality into avr microcontrollers. the patented charge-transfer signal acquisition offers robust sensing and included fully debounced reporting of touch keys and includes adja- cent key suppression ? (aks ? ) technology for unambiguous detec tion of key events. the easy- to-use qtouch suite toolchain allows you to explore, develop, and debug your own touch applications. the uc3d integrates a class 2+ nexus 2.0 on-chip debug (ocd) system, with full-speed read/write memory access, in addition to basic r untime control. the single-pin awire interface allows all features available th rough the jtag interf ace to be accessed through the reset pin, allowing the jtag pins to be used for gpio or peripherals.
5 32133d?11/2011 uc3d 2. overview 2.1 block diagram figure 2-1. block diagram system control interface interrupt controller asynchronous timer peripheral dma controller hsb-pb bridge b hsb-pb bridge a s mm m s s m external interrupt controller high speed bus matrix generalpurpose i/os general purpose i/os pa pb extint[8..1] nmi g c l k [ 2 . . 0 ] pa pb spi dma miso, mosi npcs[3..0] usart0 usart1 usart2 dma rxd txd clk rts, cts watchdog timer sck jtag interface tdo tdi tms configuration registers bus 64/128kb flash s flash controller uc cpu nexus class 2+ ocd instr interface data interface memory interface local bus 16kb sram local bus interface frequency meter pwm controller pwm[6..0] twi master dma twi slave dma 8-channel adc interface dma ad[7..0] advref power manager reset controller sleep controller clock controller xin32 xout32 osc32k rcsys xin0 xout0 osc0 pll0 bod tck awire r e s e t _ n twck twd twck twd rc120m pll1 usb fs controller m inter-ic sound controller dma dout din fsync clk mclk dp dm vbus capacitive touch sensor controller csb[24..0] csa[24..0] glue logic controller in[15..0] out[3:0] timer/counter a[2..0] b [ 2 . . 0 ] clk[2..0] dma dataout
6 32133d?11/2011 uc3d 2.2 configuration summary table 2-1. configuration summary feature atuc128/64d3 atuc128/64d4 flash 128/64kb 128/64kb sram 16kb 16kb package tqfp64, qfn64 tqfp48, qfn48 gpio 51 35 fs usb device 1 hi-drive pins 4 external interrupts 9 7 twi master/slave 1/1 usart 3 peripheral dma channels 7 spi 1 asynchronous timers 1 timer/counter channels 3 pwm channels 7 inter-ic sound 1 frequency meter 1 watchdog timer 1 power manager 1 oscillators 2x phase locked loop 80-240 mhz (pll) 1x crystal oscillator 0.4-20 mhz (osc0) 1x crystal oscillator 32 khz (osc32k) 1x rc oscillator 120mhz (rc120m) 1x rc oscillator 115 khz (rcsys) 10-bit adc channels 8 6 capacitive touch sensor supported 25 17 glue logic control inputs/outputs 16/4 14/4 jtag 1 awire 1 max frequency 48 mhz
7 32133d?11/2011 uc3d 3. package and pinout 3.1 package the device pins are multiplexed with pe ripheral functions as described in section 3.2 . figure 3-1. tqfp48/qfn48 pinout gnd 1 pb12 2 pa00 3 pa01 4 pa02 5 pb13 6 pa03 7 pa04 8 pa05 9 pa06 10 pa07 11 pa08 12 gndana 13 advref 14 vddana 15 vddout 16 vddin 17 vddcore 18 gnd 19 pa09 20 pa10 21 pa11 22 pa12 23 vddio 24 vddio 36 pa23 35 pa22 34 pa21 33 pa20 32 pa19 31 pa18 30 pa17 29 pa16 28 pa15 27 pa14 26 pa13 25 gnd 37 pb14 - dp 38 pb15 - dm 39 pb16 - vbus 40 pb17 41 pb18 42 pa24 43 pa25 44 pa26 45 pa27 46 reset_n 47 vddio 48
8 32133d?11/2011 uc3d figure 3-2. tqfp64/qfn64 pinout note: on qfn packages, the exposed pad is not connec ted to anything internally, but should be sol- dered to ground to increase board level reliability. 3.2 peripheral multiplexing on i/o lines 3.2.1 multiplexed signals each gpio line can be assigned to one of the pe ripheral functions.the following table describes the peripheral signals multiplexed to the gpio lines. gnd 1 pb12 2 pa00 3 pa01 4 pa02 5 pb00 6 pb01 7 pb13 8 pa03 9 pa04 10 pa05 11 pa06 12 pa07 13 pa08 14 pa30 15 pa31 16 gndana 17 advref 18 vddana 19 vddout 20 vddin 21 vddcore 22 gnd 23 pb02 24 pb03 25 pb04 26 pb05 27 pa09 28 pa10 29 pa11 30 pa12 31 vddio 32 vddio 48 pa23 47 pa22 46 pa21 45 pa20 44 pb07 43 pa29 42 pa28 41 pa19 40 pa18 39 pb06 38 pa17 37 pa16 36 pa15 35 pa14 34 pa13 33 gnd 49 pb14 - dp 50 pb15 - dm 51 pb16-vbus 52 pb17 53 pb08 54 pb09 55 pb18 56 pb10 57 pb11 58 pa24 59 pa25 60 pa26 61 pa27 62 reset_n 63 vddio 64 table 3-1. multiplexed signals on i/o pins 48-pin package 64-pin package pin gpio supply pad type gpio function other functions abcd 3 3 pa00 0 vddio normal i/o spi - miso pwma - pwma[1] gloc - in[0] cat - csb[0] jtag-tdi 4 4 pa01 1 vddio normal i/o spi - mosi pwma - pwma[2] gloc - in[1] cat - csa[1] jtag-tdo 5 5 pa02 2 vddio normal i/o spi - sck pwma - pwma[3] gloc - in[2] cat - csb[1] jtag-tms 7 9 pa03 3 vddana analog i/o pkgana - adcin0 scif - gclk[0] gloc - in[5] cat - csb[2] 8 10 pa04 4 vddana analog i/o pkgana - adcin1 scif - gclk[1] gloc - in[6] cat - csa[3]
9 32133d?11/2011 uc3d 9 11 pa05 5 vddana analog i/o eic - extint[8] pkgana - adcin2 gloc - out[1] cat - csb[3] 10 12 pa06 6 vddana analog i/o eic - extint[1] pkgana - adcin3 gloc - in[7] cat - csa[4] 11 13 pa07 7 vddana analog i/o pwma - pwma[0] pkgana - adcin4 gloc - in[8] cat - csb[4] 12 14 pa08 8 vddana analog i/o pwma - pwma[1] pkgana - adcin5 gloc - in[9] cat - csa[5] 20 28 pa09 9 vddio normal i/o, 5v tolerant twims - twck spi - npcs[2] usart1 - cts cat - csb[5] 21 29 pa10 10 vddio normal i/o, 5v tolerant twims - twd spi - npcs[3] usart1 - rts cat - csa[6] 22 30 pa11 11 vddio normal i/o usart0 - rts tc - a2 pwma - pwma[0] cat - csb[6] osc32 - xin 23 31 pa12 12 vddio normal i/o usart0 - cts tc - b2 pwma - pwma[1] cat - csa[7] osc32 - xout 25 33 pa13 13 vddio normal i/o eic - extint[0] pw ma - pwma[2] usart0 - clk cat - csb[7] 26 34 pa14 14 vddio normal i/o spi - mosi pwma - pwma[3] eic - extint[2] cat - csa[8] 27 35 pa15 15 vddio normal i/o spi - sck pwma - pwma[4] usart2 - clk cat - csb[8] 28 36 pa16 16 vddio normal i/o spi - npcs[0] tc - clk1 pwma - pwma[4] cat - csa[9] 29 37 pa17 17 vddio normal i/o spi - npcs[1] tc - clk2 spi - sck cat - csb[9] 30 39 pa18 18 vddio normal i/o usart0 - rxd pwma - pwma[5] spi - miso cat - csa[10] osc0 - xin 31 40 pa19 19 vddio normal i/o usart0 - txd pwma - pwma[6] spi - mosi cat - csb[10] osc0 - xout 32 44 pa20 20 vddio normal i/o usart1 - clk tc - clk0 usart2 - rxd cat - csa[11] 33 45 pa21 21 vddio normal i/o pwma - pwma[2] tc - a1 usart2 - txd cat - csb[11] 34 46 pa22 22 vddio normal i/o pwma - pwma[6 ] tc - b1 adcifd - exttrig cat - csa[12] 35 47 pa23 23 vddio normal i/o usart1 - txd spi - npcs[1] eic - extint[3] cat - csb[12] 43 59 pa24 24 vddio normal i/o usart1 - rxd spi - npcs[0] eic - extint[4] cat - csb[15] 44 60 pa25 25 vddio normal i/o spi - miso pwma - pwma[3] eic - extint[5] cat - csa[16] 45 61 pa26 26 vddio normal i/o iisc - iws usart2 - txd tc - a0 cat - csb[16] 46 62 pa27 27 vddio normal i/o iisc - isck usart2 - rxd tc - b0 cat - csa[0] 41 pa28 28 vddio normal i/o usart0 - clk pwma - pwma[4] spi - miso cat - csb[21] 42 pa29 29 vddio normal i/o tc - clk0 tc - clk1 spi - mosi cat - csa[22] 15 pa30 30 vddana analog i/o pkgana - adcin6 eic - extint[6] scif - gclk[2] cat - csa[18] 16 pa31 31 vddana analog i/o pkgana - adcin7 eic - extint[7] pwma - pwma[6] cat - csb[18] 6 pb00 32 vddio normal i/o tc - a0 eic - extint[4] usart2 - cts cat - csa[17] 7 pb01 33 vddio normal i/o tc - b0 eic - extint[5] usart2 - rts cat - csb[17] 24 pb02 34 vddio normal i/o eic - extint[6] tc - a1 usart1 - txd cat - csa[19] 25 pb03 35 vddio normal i/o eic - extint[7] tc - b1 usart1 - rxd cat - csb[19] 26 pb04 36 vddio normal i/o usart1 - cts spi - npcs[3] tc - clk2 cat - csa[20] 27 pb05 37 vddio normal i/o usart1 - rts spi - npcs[2] pwma - pwma[5] cat - csb[20] 38 pb06 38 vddio normal i/o iisc - isck pwma - pwma[5] gloc - in[15] cat - csa[21] 43 pb07 39 vddio normal i/o iisc - isdi eic - extint[2] gloc - in[11] cat - csb[22] 54 pb08 40 vddio normal i/o iisc - iws eic - extint[0] gloc - in[14] cat - csa[23] 55 pb09 41 vddio normal i/o iisc - isck iisc - imck gloc - in[3] cat - csb[23] 57 pb10 42 vddio normal i/o iisc - isdo tc - a2 usart0 - rxd cat - csa[24] 58 pb11 43 vddio normal i/o iisc - iws tc - b2 usart0 - txd cat - csb[24] table 3-1. multiplexed signals on i/o pins 48-pin package 64-pin package pin gpio supply pad type gpio function other functions abcd
10 32133d?11/2011 uc3d see section 4. for a description of the various peripheral signals. refer to ?electrical characteristics? on page 37 for a description of the electrical properties of the pad types used. 3.2.2 peripheral functions each gpio line can be assigned to one of several peripheral functions. the following table describes how the various peripheral functions are selected. the last listed function has priority in case multiple functions are enabled. 3.2.3 jtag port connections if the jtag is enabled, the jtag will take control over a number of pins, irre spective of the i/o controller configuration. 2 2 pb12 44 vddio normal i/o spi - npcs[0] iisc - imck gloc - out[0] jtag-tck 6 8 pb13 45 vddio normal i/o cat - sync scif - gclk[2] gloc - in[4] cat - csa[2] 38 50 pb14 46 vddio normal i/o usbc - dp usart0 - rxd gloc - out[2] cat - csa[13] 39 51 pb15 47 vddio normal i/o usbc - dm usart0 - txd gloc - in[12] cat - csb[13] 40 52 pb16 48 vddio input only, 5v tolerant usbc - vbus gloc - in[10] usb-vbus 41 53 pb17 49 vddio normal i/o iisc - isdo usart0 - rts gloc - in[13] 42 56 pb18 50 vddio normal i/o iisc - isdi cat - sync gloc - out[3] cat - csa[15] table 3-1. multiplexed signals on i/o pins 48-pin package 64-pin package pin gpio supply pad type gpio function other functions abcd table 3-2. peripheral functions function description a gpio peripheral selection a b gpio peripheral selection b c gpio peripheral selection c d gpio peripheral selection d table 3-3. jtag pinout 48-pin or 64-pin package pin name jtag pin 2 pb12 tck 5pa02tms 4pa01tdo 3pa00tdi
11 32133d?11/2011 uc3d 3.2.4 oscillator pinout the oscillators are not mapped to the normal gp io functions and their muxings are controlled by registers in the system control interface (s cif). please refer to the scif chapter for more information about this. 3.2.5 other functions the functions listed in table 3-5 are not mapped to the normal gpio functions.the awire data pin will only be active after the awire is e nabled. the awire dataout pin will only be active after the awire is enabled and the 2-pin mode command has been sent. table 3-4. oscillator pinout 48-pin package 64-pin package pin oscillator function 30 39 pa18 xin0 31 40 pa19 xout0 22 30 pa11 xin32 23 31 pa12 xout32 table 3-5. other functions 48-pin package 64-pin package pin function 47 63 reset_n awire data 2 2 pb12 awire dataout
12 32133d?11/2011 uc3d 4. signal descriptions the following table gives details on signal name classified by peripheral. table 4-1. signal descriptions list signal name function type active level comments awire - aw data awire data i/o dataout awire data output for 2-pin mode i/o external interrupt controller - eic nmi non-maskable interrupt input extint8 - extint1 external interrupt input jtag module - jtag tck test clock input tdi test data in input tdo test data out output tms test mode select input power manager - pm reset_n reset input low basic pulse width modulation controller - pwma pwma6 - pwma0 pwma channel waveforms output system control interface - scif gclk2 - gclk0 generic clock output xin0 oscillator 0 xin pin analog xout0 oscillator 0 xout pin analog xin32 32k oscillator xin pin analog xout32 32k oscillator xout pin analog serial peripheral interface - spi miso master in slave out i/o mosi master out slave in i/o npcs3 - npcs0 spi peripheral chip select i/o low sck clock i/o timer/counter - tc a0 channel 0 line a i/o a1 channel 1 line a i/o
13 32133d?11/2011 uc3d a2 channel 2 line a i/o b0 channel 0 line b i/o b1 channel 1 line b i/o b2 channel 2 line b i/o clk0 channel 0 external clock input input clk1 channel 1 external clock input input clk2 channel 2 external clock input input two wire interface master- twim twck two-wire serial clock twd two-wire serial data two wire interface slave- twis twck two-wire serial clock twd two-wire serial data universal synchronous/asynchronous receiver/transmitter - usart0/1/2 clk clock i/o cts clear to send input low rts request to send output low rxd receive data input txd transmit data output universal serial bus 2.0 fu ll speed interface - usbc dm dm for usb fs dp dp for usb fs vbus vbus iis controller - iisc ibck iis serial clock i/o isdi iis serial data in input isdo iis serial data out output iws iis word select i/o imck iis master clock output capacitive touch sensor - cat csa24 - csa0 capacitive sensor group a i/o csb24 - csb0 capacitive sensor group b i/o sync synchronize signal input glue logic controller - gloc in15 - in0 inputs to lookup tables input out3 - out0 outputs from lookup tables output adc controller interface - adcifd table 4-1. signal descriptions list
14 32133d?11/2011 uc3d 4.1 i/o line considerations 4.1.1 jtag pins the jtag is enabled if tck is low while the re set_n pin is released. the tck, tms, and tdi pins have pull-up resistors when jtag is enabl ed. tdo pin is an output , driven at vddio, and has no pull-up resistor. these jtag pins can be used as gpio pins and muxed with peripherals when the jtag is disabled. 4.1.2 reset_n pin the reset_n pin is a schmitt input and integr ates a programmable pull-up resistor to vddio. as the product integrates a power-on reset dete ctor, the reset_n pin can be left unconnected in case no reset from the system needs to be applied to the product. the reset_n pin is also used for the awire de bug protocol. when the pin is used for debug- ging, it must not be driven by the application. 4.1.3 twi pins when these pins are used for twi, the pins are open-drain outputs with slew-rate limitation and inputs with inputs with spike-filt ering. when used as gpio pins or used for other peripherals, the pins have the same charac teristics as gpio pins. 4.1.4 gpio pins all the i/o lines integrate a pull-up resistor . programming of this pull-up resistor is performed exttrig adcifd exttrig input ad7 - ad0 adc inputs analog power vddio digital i/o power supply power input 3.0 v to 3.6v. vddana analog power supply power input 3.0 v to 3.6v advref analog reference voltage power input 2.6 v to 3.6 v vddcore core power supply power input 1.65 v to 1.95 v vddin voltage regulator input power input 3.0 v to 3.6v vddout voltage regulator output power output 1.65 v to 1.95v gndana analog ground ground gnd ground ground general purpose i/o pin - gpioa, gpiob pa31 - pa00 general purpose i/o controller gpio a i/o pb18 - pb00 general purpose i/o controller gpio b i/o table 4-1. signal descriptions list
15 32133d?11/2011 uc3d independently for each i/o line through the gpio controller. after reset, i/o lines default as inputs with pull-up resistors disabled . 4.1.5 high drive pins four i/o lines can be used to drive twice current than other i/o cap ability (see electrical characteristics section). 4.2 power considerations 4.2.1 power supplies the uc3d has several types of power supply pins: ? vddio: powers digital i/o lin es. voltage is 3.3v nominal. ? vddin: powers the internal regulator. voltage is 3.3v nominal. ? vddcore : powers the internal core di gital logic. voltage is 1.8 v nominal. ? vddana: powers the adc and analog i/o lines. voltage is 3.3v nominal. the ground pins gnd is dedicated to vddi o and vddcore. the ground pin for vddana is gndana. refer to ?electrical characteristics? on page 37 for power consumption on the various supply pins. 4.2.2 voltage regulator the uc3d embeds a voltage regulator that converts from 3.3v nominal to 1.8v with a load of up to 100 ma. the regulator is intended to supply th e logic, memories, osci llators and plls. see section 4.2.3 for regulator connection figures. adequate output supply decoupling is mandatory on vddout to reduce ripple and avoid oscil- lations. the best way to achieve this is to use two capacitors in parallell between vddout and gnd as close to the chip as possible. please refer to section 8.9.1 for decoupling capacitors values and regulator characteristics. vddout ca n be connected externally to the 1.8v domains to power external components. 48-pin package 64-pin package pin name 32 44 pa20 33 45 pa21 34 46 pa22 35 47 pa23
16 32133d?11/2011 uc3d figure 4-1. supply decoupling for decoupling recomme ndations for vddio, vddana and vddcore, please refer to the schematic checklist. 4.2.3 regulator connection the uc3d supports two power supply configurations: ? 3.3v single supply mode ? 3.3v - 1.8v dual supply mode 4.2.3.1 3.3v single supply mode in 3.3v single supply mode the internal regulator is connected to the 3.3v source (vddin pin). the regulator output (vddout) needs to be exte rnally connected to vddcore pin to supply internal logic. figure 4-2 shows the power schematics to be used for 3.3v single supply mode. 3.3v 1.8v vddin vddout 1.8v regulator c in1 c out1 c out2 c in2
17 32133d?11/2011 uc3d figure 4-2. 3.3v single power supply mode vddio vddout cpu, peripherals, memories, scif, bod, rcsys, pll linear regulator + - 3.0-3.6v vddana adc vddin gnd gndana i/o pins + - 3.0-3.6v vddcore 1.65-1.95v
18 32133d?11/2011 uc3d 4.2.3.2 3.3v + 1.8v dual supply mode in dual supply mode the internal regulator is not used (unconnected), vddio is powered by 3.3v supply and vddcore is powered by a 1.8v supply as shown in figure 4-3 . figure 4-3. 3.3v + 1.8v dual power supply mode. 4.2.4 power-up sequence 4.2.4.1 maximum rise rate to avoid risk of latch-up, the rise rate of the power supplies must not exceed the values described in supply characteristics table in the electrical characteristics chapter. recommended order for power supplies is also described in this table. 4.2.4.2 minimum rise rate the integrated power-reset circuitry monitoring the vddin powering supp ly requires a mini- mum rise rate for the vddin power supply. vddio vddout cpu, peripherals, memories, scif, bod, rcsys, pll linear regulator + - 3.0-3.6v vddana adc vddin gnd gndana i/o pins + - 3.0-3.6v vddcore 1.65-1.95v + -
19 32133d?11/2011 uc3d see supply characteristics table in the electrical characterist ics chapter for the minimum rise rate value. if the application can not ensure that the mini mum rise rate condition for the vddin power sup- ply is met, one of the following configuration can be used: ?a logic ?0? value is applied during power-up on pin reset_n until vddin rises above 1.2v.
20 32133d?11/2011 uc3d 5. processor and architecture rev: 2.1.2.0 this chapter gives an overview of the avr32uc cpu. avr32uc is an implementation of the avr32 architecture. a summary of the programming model, and instruction set is presented. for further details, see the avr32 architecture manual and the avr32uc technical reference manual . 5.1 features ? 32-bit load/store avr32a risc architecture ? 15 general-purpose 32-bit registers ? 32-bit stack pointer, program counter and link register reside in register file ? fully orthogonal instruction set ? privileged and unprivileged modes enabling efficient and secure operating systems ? innovative instruction set together with variabl e instruction length ensuring industry leading code density ? dsp extension with saturating arithmetic, an d a wide variety of multiply instructions ? 3-stage pipeline allowing one instruct ion per clock cycle for most instructions ? byte, halfword, word, and double word memory access ? multiple interrupt priority levels 5.2 avr32 architecture avr32 is a new, high-performance 32-bit risc mi croprocessor architectu re, designed for cost- sensitive embedded applications, with particul ar emphasis on low power consumption and high code density. in addition, the in struction set architecture has been tuned to allow a variety of microarchitectures, enabling the avr32 to be implemented as low-, mid-, or high-performance processors. avr32 extends the avr family into the world of 32- and 64-bit applications. through a quantitative approach, a large set of industry recognized benchmarks has been com- piled and analyzed to achieve the best code density in its class. in addition to lowering the memory requirements, a compact code size also contributes to the core?s low power characteris- tics. the processor supports byte and halfword data types without penalty in code size and performance. memory load and store operations are provided for byte, halfword, word, and double word data with automatic sign- or zero extension of halfw ord and byte data. the c-compiler is closely linked to the architecture and is able to expl oit code optimization features, both for size and speed. in order to reduce code size to a minimum, so me instructions have multiple addressing modes. as an example, instructions with immediates often have a compact format with a smaller imme- diate, and an extended format with a larger immediate. in this way, the compiler is able to use the format giving the smallest code size. another feature of the instruction set is that fr equently used instructions, like add, have a com- pact format with two operands as well as an extended format with three operands. the larger format increases performance, allowing an addition and a data move in the same instruction in a single cycle. load and store instructions have several different formats in order to reduce code size and speed up execution.
21 32133d?11/2011 uc3d the register file is organized as sixteen 32-bi t registers and includes the program counter, the link register, and the stack pointer. in addition, register r12 is designed to hold return values from function calls and is used im plicitly by some instructions. 5.3 the avr32uc cpu the avr32uc cpu targets low- and mediu m-performance applications, and provides an advanced on-chip debug (ocd) system, and no caches. java acceleration hardware is not implemented. avr32uc provides three memory interfaces, one high speed bus master for instruction fetch, one high speed bus master for data access, an d one high speed bus sl ave interface allowing other bus masters to access data rams internal to t he cpu. keeping data ra ms internal to the cpu allows fast access to the rams, reduces latency, and guarantees deterministic timing. also, power consumption is reduced by not needing a full high speed bus access for memory accesses. a dedicated data ram interface is prov ided for communicating with the internal data rams. a local bus interface is provided for connecting the cpu to device-specific high-speed systems, such as floating-point units and i/o controller port s. this local bus has to be enabled by writing a one to the locen bit in the cpucr system regi ster. the local bus is able to transfer data between the cpu and the local bus slave in a sing le clock cycle. the lo cal bus has a dedicated memory range allocated to it, and data transfers are performed using regular load and store instructions. details on which de vices that are mapped into the local bus space is given in the cpu local bus section in the memories chapter. figure 5-1 on page 22 displays the contents of avr32uc.
22 32133d?11/2011 uc3d figure 5-1. overview of the avr32uc cpu 5.3.1 pipeline overview avr32uc has three pipeline stages, instruction fetc h (if), instruction deco de (id), and instruc- tion execute (ex). the ex stage is split into three parallel subsections, one ar ithmetic/logic (alu) section, one multiply (mul) sect ion, and one load/store (ls) section. instructions are issued and complete in order. certain operations require several clock cycles to complete, and in this case, the instruction resides in the id and ex stages for the required num- ber of clock cycles. since there is only three pipeline stages, no inte rnal data forwarding is required, and no data dependencies can arise in the pipeline. figure 5-2 on page 23 shows an overview of the avr32uc pipeline stages. avr32uc cpu pipeline instruction memory controller high speed bus master high speed bus high speed bus ocd system ocd interface interrupt controller interface high speed bus slave high speed bus high speed bus master power/ reset control reset interface cpu local bus master cpu local bus data memory controller cpu ram
23 32133d?11/2011 uc3d figure 5-2. the avr32uc pipeline 5.3.2 avr32a microarchitecture compliance avr32uc implements an avr32a microarchitect ure. the avr32a microarchitecture is tar- geted at cost-sensitive, lower-end applicati ons like smaller microcontrollers. this microarchitecture does not provide dedicated hard ware registers for shadow ing of register file registers in interrupt contexts. additionally, it does not provide hardware registers for the return address registers and return status registers. instead, all this in formation is stored on the system stack. this saves chip area at the expense of slower interrupt handling. 5.3.2.1 interrupt handling upon interrupt initiation, registers r8-r12 are automatically pushed to th e system stack. these registers are pushed regardless of the priority leve l of the pending interrupt. the return address and status register are also automatically pushed to stack. the interrupt handler can therefore use r8-r12 freely. upon interrupt completion, th e old r8-r12 registers and status register are restored, and execution continues at the return address stored popped from stack. the stack is also used to store the status register and return address for exceptions and scall . executing the rete or rets instruction at the completion of an exception or system call will pop this status register and continue ex ecution at the popped return address. 5.3.2.2 java support avr32uc does not provide java hardware acceleration. 5.3.2.3 unaligned reference handling avr32uc does not support unaligned accesses, except for doubleword accesses. avr32uc is able to perform word-aligned st.d and ld.d . any other unaligned memory access will cause an address exception. doubleword -sized accesses with word-align ed pointers will automatically be performed as two word-sized accesses. if id alu mul regfile write prefetch unit decode unit alu unit multiply unit load-store unit ls regfile read
24 32133d?11/2011 uc3d the following table shows the instructions wit h support for unaligned addresses. all other instructions requir e aligned addresses. 5.3.2.4 unimplemented instructions the following instructions are unimplemented in avr32uc, and will cause an unimplemented instruction exception if executed: ? all simd instructions ? all coprocessor instructions if no coprocessors are present ? retj, incjosp, popjc, pushjc ? tlbr, tlbs, tlbw ? cache 5.3.2.5 cpu and architecture revision three major revisions of the avr32uc cpu currently exist. the device described in this datasheet uses cpu revision 3. the architecture revision field in the config0 system register identifies which architecture revision is implemented in a specific device. avr32uc cpu revision 3 is fully backward-compatible with revisions 1 and 2, ie. code compiled for revision 1 or 2 is binary-compatible with revision 3 cpus. table 5-1. instructions with una ligned reference support instruction supported alignment ld.d word st.d word
25 32133d?11/2011 uc3d 5.4 programming model 5.4.1 register file configuration the avr32uc register file is shown below. figure 5-3. the avr32uc register file 5.4.2 status register configuration the status register (sr) is split in to two halfwords, one upper and one lower, see figure 5-4 and figure 5-5 . the lower word contains the c, z, n, v, and q condition code flags and the r, t, and l bits, while the upper halfword contains in formation about the mode and state the proces- sor executes in. refer to the avr32 architecture manual for details. figure 5-4. the status register high halfword application bit 0 supervisor bit 31 pc sr int0pc fintpc int1pc smpc r7 r5 r6 r4 r3 r1 r2 r0 bit 0 bit 31 pc sr r12 int0pc fintpc int1pc smpc r7 r5 r6 r4 r11 r9 r10 r8 r3 r1 r2 r0 int0 sp_app sp_sys r12 r11 r9 r10 r8 exception nmi int1 int2 int3 lr lr bit 0 bit 31 pc sr r12 int0pc fintpc int1pc smpc r7 r5 r6 r4 r11 r9 r10 r8 r3 r1 r2 r0 sp_sys lr bit 0 bit 31 pc sr r12 int0pc fintpc int1pc smpc r7 r5 r6 r4 r11 r9 r10 r8 r3 r1 r2 r0 sp_sys lr bit 0 bit 31 pc sr r12 int0pc fintpc int1pc smpc r7 r5 r6 r4 r11 r9 r10 r8 r3 r1 r2 r0 sp_sys lr bit 0 bit 31 pc sr r12 int0pc fintpc int1pc smpc r7 r5 r6 r4 r11 r9 r10 r8 r3 r1 r2 r0 sp_sys lr bit 0 bit 31 pc sr r12 int0pc fintpc int1pc smpc r7 r5 r6 r4 r11 r9 r10 r8 r3 r1 r2 r0 sp_sys lr bit 0 bit 31 pc sr r12 int0pc fintpc int1pc smpc r7 r5 r6 r4 r11 r9 r10 r8 r3 r1 r2 r0 sp_sys lr secure bit 0 bit 31 pc sr r12 int0pc fintpc int1pc smpc r7 r5 r6 r4 r11 r9 r10 r8 r3 r1 r2 r0 sp_sec lr ss_status ss_adrf ss_adrr ss_adr0 ss_adr1 ss_sp_sys ss_sp_app ss_rar ss_rsr bit 31 0 0 0 bit 16 interrupt level 0 m ask interrupt level 1 m ask interrupt level 3 m ask interrupt level 2 m ask 1 0 0 0 0 1 1 0 0 0 0 0 0 fe i0m gm m1 - d m0 em i2m dm - m2 lc 1 - initial value bit name i1m mode bit 0 mode bit 1 - mode bit 2 reserved debug state - i3m reserved exception mask global interrupt m ask debug state mask reserved
26 32133d?11/2011 uc3d figure 5-5. the status register low halfword 5.4.3 processor states 5.4.3.1 normal risc state the avr32 processor supports several diff erent execution contexts as shown in table 5-2 . mode changes can be made under software control, or can be caused by external interrupts or exception processing. a mode can be interrupted by a higher priority mode, but never by one with lower priority. ne sted exceptions can be supported with a minimal software overhead. when running an operating system on the avr32, user processes will typically execute in the application mode. the programs executed in this mode are restricted from executing certain instructions. furthermore, most system register s together with the upper halfword of the status register cannot be accessed. protected memory ar eas are also not available. all other operating modes are privileged and are collectively called system modes. they have full access to all priv- ileged and unprivileged resources. after a reset, the processo r will be in supervisor mode. 5.4.3.2 debug state the avr32 can be set in a debug state, which allows implementation of software monitor rou- tines that can read out and alter system inform ation for use during application development. this implies that all system and application regist ers, including the status registers and program counters, are accessible in debug state. th e privileged instructions are also available. all interrupt levels are by default disabled when debug state is entered, but they can individually be switched on by the monitor routine by clearing the respective mask bit in the status register. bit 15 bit 0 reserved carry zero sign 0 0 0 0 0 0 0 0 0 0 0 0 0 0 - - - - t - bit name initial value 0 0 l q v n z c - overflow saturation - - - lock reserved scratch table 5-2. overview of execution modes, thei r priorities and privilege levels. priority mode securi ty description 1 non maskable interrupt privileged non maskable high priority interrupt mode 2 exception privileged execute exceptions 3 interrupt 3 privileged general purpose interrupt mode 4 interrupt 2 privileged general purpose interrupt mode 5 interrupt 1 privileged general purpose interrupt mode 6 interrupt 0 privileged general purpose interrupt mode n/a supervisor privileged runs supervisor calls n/a application unprivileged normal program execution mode
27 32133d?11/2011 uc3d debug state can be entered as described in the avr32uc technical reference manual . debug state is exited by the retd instruction. 5.4.4 system registers the system registers are placed outside of the virtual memory space, and are only accessible using the privileged mfsr and mtsr instructions. the table below lis ts the system registers speci- fied in the avr32 architecture, some of which are unused in avr32uc. the programmer is responsible for maintaining correct sequen cing of any instructions following a mtsr instruction. for detail on the system registers, refer to the avr32uc technical reference manual . table 5-3. system registers reg # address name function 0 0 sr status register 1 4 evba exception vector base address 2 8 acba application call base address 3 12 cpucr cpu control register 4 16 ecr exception cause register 5 20 rsr_sup unused in avr32uc 6 24 rsr_int0 unused in avr32uc 7 28 rsr_int1 unused in avr32uc 8 32 rsr_int2 unused in avr32uc 9 36 rsr_int3 unused in avr32uc 10 40 rsr_ex unused in avr32uc 11 44 rsr_nmi unused in avr32uc 12 48 rsr_dbg return status register for debug mode 13 52 rar_sup unused in avr32uc 14 56 rar_int0 unused in avr32uc 15 60 rar_int1 unused in avr32uc 16 64 rar_int2 unused in avr32uc 17 68 rar_int3 unused in avr32uc 18 72 rar_ex unused in avr32uc 19 76 rar_nmi unused in avr32uc 20 80 rar_dbg return address register for debug mode 21 84 jecr unused in avr32uc 22 88 josp unused in avr32uc 23 92 java_lv0 unused in avr32uc 24 96 java_lv1 unused in avr32uc 25 100 java_lv2 unused in avr32uc 26 104 java_lv3 unused in avr32uc 27 108 java_lv4 unused in avr32uc
28 32133d?11/2011 uc3d 5.5 exceptions and interrupts in the avr32 architecture, events are used as a common term for exceptions and interrupts. avr32uc incorporates a powerful event handling sc heme. the different event sources, like ille- gal op-code and interrupt requests, have different priority levels, ensuring a well-defined behavior when multiple events are received simultaneously. additionally, pending events of a higher priority class may preempt handling of ongoing events of a lower priority class. when an event occurs, the execution of the instru ction stream is halted, and execution is passed to an event handler at an address specified in table 5-4 on page 32 . most of the handlers are placed sequentially in the code sp ace starting at the ad dress specified by evba, with four bytes between each handler. this gives ample space for a jump instruction to be placed there, jump- ing to the event routine itself. a few critical handlers have larg er spacing between them, allowing 28 112 java_lv5 unused in avr32uc 29 116 java_lv6 unused in avr32uc 30 120 java_lv7 unused in avr32uc 31 124 jtba unused in avr32uc 32 128 jbcr unused in avr32uc 33-63 132-252 reserved reserved for future use 64 256 config0 configuration register 0 65 260 config1 configuration register 1 66 264 count cycle counter register 67 268 compare compare register 68 272 tlbehi unused in avr32uc 69 276 tlbelo unused in avr32uc 70 280 ptbr unused in avr32uc 71 284 tlbear unused in avr32uc 72 288 mmucr unused in avr32uc 73 292 tlbarlo unused in avr32uc 74 296 tlbarhi unused in avr32uc 75 300 pccnt unused in avr32uc 76 304 pcnt0 unused in avr32uc 77 308 pcnt1 unused in avr32uc 78 312 pccr unused in avr32uc 79 316 bear bus error address register 90-102 360-408 reserved reserved for future use 103-111 412-444 reserved reserved for future use 112-191 448-764 reserved reserved for future use 192-255 768-1020 impl implementation defined table 5-3. system registers (continued) reg # address name function
29 32133d?11/2011 uc3d the entire event routine to be placed directly at the address specified by the evba-relative offset generated by hardware. all interrupt sources have autovectored interrupt service routine (isr) addresses. this allows the interrupt controller to directly specify the isr address as an address relative to evba. the autovector offset has 14 address bits, givi ng an offset of maximum 16384 bytes. the target address of the event handle r is calculated as (evba | event_handler_offset), not (evba + event_handler_offse t), so evba and exception code segments must be set up appropriately. the same mechanisms are used to se rvice all different types of events, including interrupt requests, yielding a uniform event handling scheme. an interrupt controller does the priority handling of the interrupts and provides the autovector off- set to the cpu. 5.5.1 system stack issues event handling in avr32uc uses the system stack pointed to by the system stack pointer, sp_sys, for pushing and popping r8 -r12, lr, status register, and return ad dress. since event code may be timing-critical, sp_sys should point to memory addresses in the iram section, since the timing of accesses to this memory section is both fast and deterministic. the user must also make sure that the system st ack is large enough so that any event is able to push the required registers to stack. if the syst em stack is full, and an event occurs, the system will enter an undefined state. 5.5.2 exceptions and interrupt requests when an event other than scall or debug request is received by the core, the following actions are performed atomically: 1. the pending event will not be accepted if it is masked. the i3m, i2m, i1m, i0m, em, and gm bits in the status register are used to mask different events. not all events can be masked. a few critical events (nmi, unre coverable exception, tlb multiple hit, and bus error) can not be masked. when an ev ent is accepted, hardware automatically sets the mask bits corresponding to all sources with equal or lower priority. this inhibits acceptance of other events of the same or lo wer priority, except fo r the critical events listed above. software may choose to clear some or all of these bits after saving the necessary state if other priority schemes are desired. it is the event source?s respons- ability to ensure that their events are le ft pending until accepted by the cpu. 2. when a request is accepted, the status re gister and program counter of the current context is stored to the system stack. if the event is an int0, int1, int2, or int3, reg- isters r8-r12 and lr are also automatically stored to stack. storing the status register ensures that the core is returned to the previous execution mode when the current event handling is completed. when ex ceptions occur, both the em and gm bits are set, and the application may manually en able nested exceptions if desired by clear- ing the appropriate bit. each exception handler has a dedicated handler address, and this address uniquely identifies the exception source. 3. the mode bits are set to reflect the priority of the accepted event, and the correct regis- ter file bank is selected. the addres s of the event handler, as shown in table 5-4 on page 32 , is loaded into the program counter. the execution of the event handler routine then continues from the effective address calculated. the rete instruction signals the end of the event. wh en encountered, the re turn status register and return address register are popped from th e system stack and restored to the status reg- ister and program counter. if the rete instruction returns from int0, int1, int2, or int3, registers r8-r12 and lr are also popped from t he system stack. the restored status register
30 32133d?11/2011 uc3d contains information allowing the core to resume operation in the previous execution mode. this concludes the event handling. 5.5.3 supervisor calls the avr32 instruction set provides a supervisor mode call instruction. the scall instruction is designed so that privileged routines can be ca lled from any context. this facilitates sharing of code between different execution modes. the scall mechanism is designed so that a minimal execution cycle overhead is experienced when performing supervisor routine calls from time- critical event handlers. the scall instruction behaves differently depending on which mode it is called from. the behav- iour is detailed in the instruction se t reference. in order to allow the scall routine to return to the correct context, a return from supervisor call instruction, rets , is implemented. in the avr32uc cpu, scall and rets uses the system stack to store the re turn address and t he status register. 5.5.4 debug requests the avr32 architecture defines a dedicated deb ug mode. when a debug request is received by the core, debug mode is entered. entry into de bug mode can be masked by the dm bit in the status register. upon entry into debug mode, hardware sets the sr.d bit and jumps to the debug exception handler. by default, debug mode executes in the exception context, but with dedicated return address register and return status register. thes e dedicated registers remove the need for storing this data to the system stack, t hereby improving debuggability. the mode bits in the status register can freely be manipulated in debug mode, to observe registers in all contexts, while retaining full privileges. debug mode is exited by executing the retd instruction. this return s to the previous context. 5.5.5 entry points for events several different event handler entry points exist. in avr32uc, the reset address is 0x80000000. this places the reset a ddress in the boot flash memory area. tlb miss exceptions and scall have a dedicated space relative to evba where their event han- dler can be placed. this speeds up execution by removing the need for a jump instruction placed at the program address jumped to by the event hardware. all other exceptions have a dedicated event routine entry point locat ed relative to evba. the handler routine address identifies the exception source directly. all interrupt requests have entry points located at an offset relative to evba. this autovector off- set is specified by an interrupt controller. the programmer must make sure that none of the autovector offsets interfere with the placemen t of other code. the autovector offset has 14 address bits, giving an offset of maximum 16384 bytes. special considerations should be made when loading evba with a po inter. due to security con- siderations, the event handlers should be located in non-writeable flash memory. if several events occur on the same instruction, th ey are handled in a prioritized way. the priority ordering is presented in table 5-4 on page 32 . if events occur on several instructions at different locations in the pipeline, the events on the oldest instruction are always handled before any events on any younger instruction, even if the yo unger instruction has events of higher priority than the oldest instruction. an inst ruction b is younger than an instruction a if it was sent down the pipeline later than a.
31 32133d?11/2011 uc3d the addresses and priority of si multaneous events are shown in table 5-4 on page 32 . some of the exceptions are unused in avr32uc since it has no mmu, coprocessor in terface, or floating- point unit.
32 32133d?11/2011 uc3d table 5-4. priority and handler addresses for events priority handler address name event source stored return address 1 0x80000000 reset external input undefined 2 provided by ocd system ocd stop cpu ocd system first non-compl eted instruction 3 evba+0x00 unrecoverable e xception internal pc of offending instruction 4 evba+0x04 5 evba+0x08 bus error data fetch data bu s first non-complet ed instruction 6 evba+0x0c bus error instruction fetch dat a bus first non-compl eted instruction 7 evba+0x10 nmi external input first non-completed instruction 8 autovectored interrupt 3 request external input first non-completed instruction 9 autovectored interrupt 2 request external input first non-completed instruction 10 autovectored interrupt 1 request external input first non-completed instruction 11 autovectored interrupt 0 request external input first non-completed instruction 12 evba+0x14 instruction address cp u pc of offending instruction 13 evba+0x50 14 evba+0x18 15 evba+0x1c breakpoint ocd system firs t non-completed instruction 16 evba+0x20 illegal opcode instructio n pc of offending instruction 17 evba+0x24 unimplemented instruction instr uction pc of offending instruction 18 evba+0x28 privilege violation instruc tion pc of offending instruction 19 evba+0x2c floating-point unused 20 evba+0x30 coprocessor absent instruct ion pc of offending instruction 21 evba+0x100 supervisor call instru ction pc(supervisor call) +2 22 evba+0x34 data address (read) cp u pc of offending instruction 23 evba+0x38 data address (write) cpu pc of offending instruction 24 evba+0x60 25 evba+0x70 26 evba+0x3c 27 evba+0x40 28 evba+0x44
33 32133d?11/2011 uc3d 6. memories 6.1 embedded memories ? internal high-speed flash ? 128kbytes (atuc128d) ? 64kbytes (atuc64d) ? 0 wait state access at up to 24 mhz in worst case conditions ? 1 wait state access at up to 48 mhz in worst case conditions ? pipelined flash architecture, allowing bu rst reads from sequential flash locations, hiding penalty of 1 wait state access ? 100 000 write cycles, 15-year data retention capability ? 4ms page programming time, 8 ms chip erase time ? sector lock capabilities, bootloader protection, security bit ? 32 fuses, erased during chip erase ? user page for data to be preserved during chip erase ? internal high-speed sram, single-cycle access at full speed ?16kbytes 6.2 physical memory map the system bus is implemented as a bus matrix . all system bus addresses are fixed, and they are never remapped in any way, not even in boot. note that avr32u c cpu uses unsegmented translation, as described in the avr32 architec ture manual. the 32-bit physical address space is mapped as follows: table 6-1. uc3d physical memory map 6.3 peripheral address map device embedded sram embedded flash hsb-pb bridge a hsb-pb bridge b start address 0x0000_0000 0x8000_0000 0xffff_0000 0xfffe_0000 size atuc128d 16 kbytes 128 kbytes 64 kbytes 64 kbytes atuc64d 16 kbytes 64 kbytes 64 kbytes 64 kbytes table 6-2. peripheral address mapping address peripheral name 0xfffe0000 usbc usb 2.0 interface - usbc 0xfffe1000 hmatrix hsb matrix - hmatrix 0xfffe1400 flashcdw flash controller - flashcdw 0xffff0000 pdca peripheral dma controller - pdca 0xffff1000 intc interrupt controller - intc
34 32133d?11/2011 uc3d 0xffff1400 pm power manager - pm 0xffff1800 ast asynchronous timer - ast 0xffff1c00 wdt watchdog timer - wdt 0xffff2000 eic external interrupt controller - eic 0xffff2800 gpio general purpose input/ output controller - gpio 0xffff3000 usart0 universal synchronous/asynchronous receiver/transmitter - usart0 0xffff3400 usart1 universal synchronous/asynchronous receiver/transmitter - usart1 0xffff3800 usart2 universal synchronous/asynchronous receiver/transmitter - usart2 0xffff3c00 spi serial peripher al interface - spi 0xffff4000 twim two-wire master interface - twim 0xffff4400 twis two-wire slave interface - twis 0xffff4800 pwma pulse width modulation controller - pwma 0xffff4c00 iisc inter-ic sound (i 2s) controller - iisc 0xffff5000 tc timer/counter - tc 0xffff5400 adcifd adc controller interface - adcifd 0xffff5800 scif system control interface - scif 0xffff5c00 freqm frequency meter - freqm 0xffff6000 cat capacitive touch module - cat table 6-2. peripheral address mapping
35 32133d?11/2011 uc3d 6.4 cpu local bus mapping some of the registers in the gpio module are mapped onto the cpu local bus, in addition to being mapped on the peripheral bus. these registers can therefore be reached both by accesses on the peripheral bus, and by accesses on the local bus. mapping these registers on the local bus allows cy cle-deterministic toggli ng of gpio pins since the cpu and gpio are the only mo dules connected to this bus. also, since the local bus runs at cpu speed, one write or read operation can be pe rformed per clock cycle to the local bus- mapped gpio registers. the following gpio registers are mapped on the local bus: 0xffff6400 gloc glue logic controller - gloc 0xffff6800 aw awire - aw table 6-2. peripheral address mapping table 6-3. local bus mapped gpio registers port register mode local bus address access a output driver enable register (oder) write 0x40000040 write-only set 0x40000044 write-only clear 0x40000048 write-only toggle 0x4000004c write-only output value register (ovr) write 0x40000050 write-only set 0x40000054 write-only clear 0x40000058 write-only toggle 0x4000005c write-only pin value register (pvr) - 0x40000060 read-only b output driver enable register (oder) write 0x40000140 write-only set 0x40000144 write-only clear 0x40000148 write-only toggle 0x4000014c write-only output value register (ovr) write 0x40000150 write-only set 0x40000154 write-only clear 0x40000158 write-only toggle 0x4000015c write-only pin value register (pvr) - 0x40000160 read-only
36 32133d?11/2011 uc3d 7. boot sequence this chapter summarizes the boot sequence of th e uc3d. the behavior after power-up is con- trolled by the power manager. for specific details, refer to the power manager chapter. 7.1 starting of clocks after power-up, the device will be held in a reset state by the power-on reset circuitry for a short time to allow the power to stabilize throughout the device . after reset, the device will use the system rc oscillator (r csys) as clock source. on system start-up, all clocks to all modules are running. no clo cks have a divided frequency; all parts of the system rece ive a clock with the same frequen cy as the system rc oscillator. 7.2 fetching of initial instructions after reset has been released, the avr32uc cpu st arts fetching instructions from the reset address, which is 0x80000000. this address poin ts to the first address in the internal flash. the code read from the internal flash is free to configure the system to divide the frequency of the clock routed to some of the peripherals, and to gate the clocks to unused peripherals.
37 32133d?11/2011 uc3d 8. electrical characteristics 8.1 disclaimer all values in this chapter are preliminary and subject to change without further notice. 8.2 absolute maximum ratings* notes: 1. 5v tolerant pins, see section 3.2 ?peripheral multiplexing on i/o lines? on page 8 2. v vdd corresponds to either v vddin or v vddio , depending on the supply for the pin. refer to section 3.2 on page 8 for details. 8.3 supply characteristics the following characteristi cs are applicable to the operating temperature range: t a = -40c to 85c, unless otherwise specified and are cert ified for a junction temperature up to t j = 100c. 8.4 maximum clock frequencies these parameters are given in the following conditions: ?v vddcore = 1.65 to 1.95v table 8-1. absolute maximum ratings operating temperature ............... ..................... -40c to +85c *notice: stresses beyond those listed under ?absolute maximum ratings? may cause permanent damage to the device. this is a stress rating only and functional opera- tion of the device at these or other condi- tions beyond those indicated in the operational sections of this specification is not implied. exposure to absolute maxi- mum rating conditions for extended peri- ods may affect device reliability. storage temperature ...................................... -60c to +150c voltage on input pins (except for 5v pins) with respect to ground .................................................................-0.3v to v vdd (2) +0.3v voltage on 5v tolerant (1) pins with respect to ground ............... .............................................................................-0.3v to 5.5v total dc output current on all i/o pins - vddio ........... 152ma total dc output current on all i/o pins - vddana........ 152ma maximum operating voltage vddc ore.............. ........... 1.95v maximum operating voltage vdd io, vddin ....... ............. 3.6v table 8-2. supply characteristics symbol parameter voltage min max unit v vddio dc supply peripheral i/os 3.0 3.6 v v vddin dc supply internal regulator, 3.3v single supply mode 3.0 3.6 v v vddcore dc supply core 1.65 1.95 v v vddana analog supply voltage 3.0 3.6 v v advrefp analog reference voltage 2.6 v vddana v
38 32133d?11/2011 uc3d ? temperature = -40c to 85c 8.5 power consumption the values in table 8-4 are measured values of power c onsumption under the following condi- tions, except where noted: ? operating conditions internal core supply ( figure 8-1 ) - this is the default configuration ?v vddin = 3.3v ?v vddcore = 1.8v, supplied by the internal regulator ? corresponds to the 3.3v supply mode with 1.8 v regulated i/o lines, please refer to the supply and startup considerations section for more details ? the following peripheral clocks running ?t a = 25 c ? oscillators ? osc0 running (external clock)as reference ? pll running at 48mhz with osc0 as reference ? clocks ? pll used as main clock source ? cpu, hsb, and pbb clocks undivided ? pba clock divided by 4 ? the following peripheral clocks running ? pm, scif, ast, flashcdw, pba bridge ? all other peripheral clocks stopped ? i/os are inactive with internal pull-up table 8-3. clock frequencies symbol parameter conditions min max units f cpu cpu clock frequency 48 mhz f pba pba clock frequency 48 mhz f pbb pbb clock frequency 48 mhz f gclk0 gclk0 clock frequency gloc, gclk0 pin 48 mhz f gclk1 gclk1 clock frequency gclk1 pin 48 mhz f gclk2 gclk2 clock frequency gclk2 pin 48 mhz f gclk3 gclk3 clock frequency usb 48 mhz f gclk4 gclk4 clock frequency pwma 150 mhz f gclk5 gclk5 clock frequency iisc 48 mhz f gclk6 gclk6 clock frequency ast 80 mhz f gclk8 gclk8 clock frequency adcifb 48 mhz
39 32133d?11/2011 uc3d table 8-4. power consumption for different operating modes mode conditions consumption typ unit active - cpu running a recursive fibonacci algorithm from flash and clocked from pll0 at f mhz. - voltage regulator is on. - xin0: external clock. - all peripheral clocks activated with a division by 4. - gpios are inactive with inter nal pull-up, jtag unconnected with external pull-up and input pins are connected to gnd 0.3105xf(mhz) + 0.2707 ma/mhz same conditions at 48mhz 15.17 ma idle see active mode conditions 0.1165xf(mhz) + 0.1457 ma/mhz same conditions at 48mhz 5.74 ma frozen see active mode conditions 0.0718xf(mhz) + 0.0903 ma/mhz same conditions at 48mhz 3.54 ma standby see active mode conditions 0.0409xf(mhz) + 0.0935 ma/mhz same conditions at 48mhz 2.06 ma stop - cpu running in sleep mode - xin0, xin1 and xin32 are stopped. - all peripheral clocks are desactived. - gpios are inactive with internal pull-up, jtag unconnected with external pull-up and input pins are connected to gnd. voltage regulator on 60 a voltage regulator off 51 a deepstop see stop mode conditions voltage regulator on 26 a voltage regulator off 17 a static see stop mode conditions voltage regulator on 13 a voltage regulator off 3.5 a
40 32133d?11/2011 uc3d figure 8-1. measurement schematic, external core supply 8.5.1 peripheral power consumption the values in table 8-5 are measured values of power consumption under the following conditions. ? operating conditions external core supply ( figure 8-1 ) ?v vddin = 3.3v ?v vddcore = 1.8v, supplied by the internal regulator ? corresponds to the 3.3v + 1.8v dual supply mode , please refer to the supply and startup considerations section for more details ?t a = 25 c ? oscillators ? osc0 on external clock running ? pll running at 48mhz with osc0 as reference ? clocks ? osc0 external clock used as main clock source ? cpu, hsb, and pb clocks undivided internal voltage regulator amp0 amp1 vddana vddio vddin vddout vddcore
41 32133d?11/2011 uc3d ? i/os are inactive with internal pull-up consumption idle is the added current consumption when turning the module clock on and the module is uninitialized. consumpt ion active is the added current consumption when the module clock is turned on and when the module is doing a typical set of operations. notes: 1. includes the current consumption on vddana and advrefp. 8.6 i/o pin ch aracteristics table 8-5. typical current consumption by peripheral peripheral typ consumption active unit adcifd (1) 3.6 a/mhz ast 4.5 aw usart 9.8 cat 14 eic 2.3 freqm 1.1 gloc 1.3 gpio 10.6 iisc 4.7 pwma 5.6 spi 6.3 tc 7.3 twim 4.5 twis 2.8 usart 3.9 wdt 1.8 table 8-6. normal i/o pin characteristics (1) symbol parameter condition min typ max units r pullup pull-up resistance 9 15 25 kohm v il input low-level voltage v vdd = 3.0v (3) -0.3 +0.8 v (4) -0.3 +0.4 v v ih input high-level voltage v vdd = 3.6v (3) +2 v vdd + 0.3 v (4) +1.6 v vdd + 0.3 v v ol output low-level voltage v vdd = 3.0v, i ol = 4ma 0.4 v v oh output high-level voltage v vdd = 3.0v, i oh = 4ma v vdd - 0.4 v
42 32133d?11/2011 uc3d notes: 1. v vdd corresponds to either v vddin or v vddio , depending on the supply for the pin. refer to section 3.2 on page 8 for details. 2. these values are based on simulation and characterization of other avr microcontrollers manufactured in the same pro- cess technology. these values are not covered by test limits in production. 3. this applies to all normal drive pads except pb13, pb17 and pb18. 4. this applies to pb13, pb17 and pb18 pads only. 5. this applies to all normal drive pad except pa00, pa01, pa02, pa03, pa04, pa05, pa06, pa07, pa08, pa09, pa10, pa11, pa12, pa13, pa18, pa19, pa27, pa30, pa31, pb13, pb16 and reset_n. 6. this applies to pa00, pa01, pa02, pa03, pa04, pa05, pa06 , pa07, pa08, pa09, pa10, pa11, pa12, pa13, pa18, pa19, pa27, pa30, pa31, pb13, pb16 and reset_n pads only. 7. this applies to all normal drive pads except pa09, pa10, pa11, pa12, pa18, pa19, pb14, pb15. i ol output low-level current v vdd = 3.0v (5) 4ma (6) 8ma i oh output high-level current v vdd = 3.0v (5) 4ma (6) 8ma f max output frequency (2) v vdd = 3.0v, load = 10 pf (5) 195 mhz (6) 348 mhz v vdd = 3.0v, load = 30 pf (5) 78 mhz (6) 149 mhz t rise rise time (2) v vdd = 3.0v, load = 10 pf (5) 2.21 ns (6) 1.26 ns v vdd = 3.0v, load = 30 pf (5) 5.45 ns (6) 2.88 ns t fall fall time (2) v vdd = 3.0v, load = 10 pf (5) 2.57 ns (6) 1.44 ns v vdd = 3.0v, load = 30 pf (5) 6.41 ns (6) 3.35 ns i leak input leakage current pull-up resistors disabled 1 a c in input capacitance, (7) 2pf pa09, pa10 16.5 pf pa11, pa12, pa18, pa19 18.5 pf pb14, pb15 5 pf table 8-6. normal i/o pin characteristics (1) symbol parameter condition min typ max units table 8-7. high-drive i/o pin characteristics (1) symbol parameter condition min typ max units r pullup pull-up resistance 9 15 25 kohm v il input low-level voltage v vdd = 3.0v -0.3 +0.8 v v ih input high-level voltage v vdd = 3.6v +2 v vdd + 0.3 v v ol output low-level voltage v vdd = 3.0v, i ol = 6ma 0.4 v
43 32133d?11/2011 uc3d notes: 1. v vdd corresponds to either v vddin or v vddio , depending on the supply for the pin. refer to section 3.2 on page 8 for details. 2. these values are based on simulation and characterization of other avr microcontrollers manufactured in the same pro- cess technology. these values are not covered by test limits in production. notes: 1. v vdd corresponds to either v vddin or v vddio , depending on the supply for the pin. refer to section 3.2 on page 8 for details. 2. these values are based on simulation and characterization of other avr microcontrollers manufactured in the same pro- cess technology. these values are not covered by test limits in production. 3. pb16-vbus pad has no pull-up resistance v oh output high-level voltage v vdd = 3.0v, i oh = 6ma v vdd - 0.4 v i ol output low-level current v vdd = 3.0v 16 ma i oh output high-level current v vdd = 3.0v 16 ma f max output frequency v vdd = 3.0v, load = 10 pf 471 mhz v vdd = 3.0v, load = 30 pf 249 mhz t rise rise time, all high-drive i/o pins v vdd = 3.0v, load = 10 pf 0.86 ns v vdd = 3.0v, load = 30 pf 1.70 ns t fall fall time v vdd = 3.0v, load = 10 pf 1.06 ns v vdd = 3.0v, load = 30 pf 2.01 ns i leak input leakage current pull-up resistors disabled 1 a c in input capacitance, tqfp48 package 2 pf table 8-7. high-drive i/o pin characteristics (1) symbol parameter condition min typ max units table 8-8. pb14-dp, pb15-dm pins characteristics symbol parameter condition min typ max units r pullup pull-up resistance 50 100 150 kohm table 8-9. pb16-vbus pin ch aracteristics (1) symbol parameter condition min typ max units r pullup (3) pull-up resistance kohm v il input low-level voltage v vdd = 3.0v -0.3 +0.8 v v ih input high-level voltage v vdd = 3.6v +2 v vdd + 0.3 v i leak input leakage current 5.5v, pull-up resistors disabled 1 a c in input capacitance 48 pin packages 0.6 pf
44 32133d?11/2011 uc3d 8.7 oscillator characteristics 8.7.1 oscillator 0 (osc0) characteristics 8.7.1.1 digital clock characteristics the following table describes the characteristics fo r the oscillator when a digital clock is applied on xin. 8.7.1.2 crystal oscilla tor characteristics the following table describes the characteristics for the oscillator when a crystal is connected between xin and xout as shown in figure 8-2 . the user must choose a crystal oscillator where the crystal load capacitance c l is within the range given in the table. the exact value of c l can be found in the crystal datasheet. the capacitance of the external capacitors (c lext ) can then be computed as follows: where c pcb is the capacitance of the pcb. notes: 1. please refer to t he scif chapter for details. table 8-10. digital clock characteristics symbol parameter conditions min typ max units f cpxin xin clock frequency 50 mhz t cpxin xin clock duty cycle 40 60 % c lext 2c l c i ? () c pcb ? = table 8-11. crystal oscillator characteristics symbol parameter conditions min typ max unit 1/(t cpmain ) crystal oscillator frequency 0.4 20 mhz c l crystal load capacitance 6 18 pf c i internal equivalent load capacitance 1.7 pf t startup startup time 400 khz resonator scif.oscctrl.gain = 0 (1) 198 s 2 mhz quartz scif.oscctrl.gain = 0 (1) 4666 8 mhz quartz scif.oscctrl.gain = 1 (1) 975 12 mhz quartz scif.oscctrl.gain = 2 (1) 615 16 mhz quartz scif.oscctrl.gain = 2 (1) 1106 20 mhz quartz scif.oscctrl.gain = 3 (1) 1109
45 32133d?11/2011 uc3d figure 8-2. oscillator connection 8.7.2 32khz crystal oscillator (osc32k) characteristics 8.7.2.1 digital clock characteristics the following table describes the characteristics fo r the oscillator when a digital clock is applied on xin32. figure 8-2 and the equation above also applies to the 32khz oscillator connection. the user must choose a crystal oscillator where the crystal load capacitance c l is within the range given in the table. the exact value of c l can then be found in the crystal datasheet. xin xout c lext c lext c l c i uc3d table 8-12. digital clock characteristics symbol parameter conditions min typ max units f cpxin xin32 clock frequency 32.768 5000 khz t cpxin xin32 clock duty cycle 40 60 % table 8-13. 32 khz crystal oscillator characteristics symbol parameter conditions min typ max unit 1/(t cp32khz ) crystal oscillator frequency 32.768 5000 khz t st startup time r s = 50kohm, c l = 9pf 2 s c l crystal load capacitance 6 15 pf c i internal equivalent load capacitance 1.4 pf
46 32133d?11/2011 uc3d 8.7.3 phase locked loop (pll) characteristics 8.7.4 120mhz rc oscillator (rc120m) characteristics note: 1. these values are based on simulation and characterization of other avr microcontrollers manufactured in the same pro- cess technology. these values are not covered by test limits in production. 8.7.5 system rc oscillator (rcsys) characteristics 8.8 flash characteristics table 8-17 gives the device maximum operating frequency depending on the number of flash wait states and the flash read mode. the fsw bit in the flashcdw fsr register controls the number of wait states used wh en accessing the flash memory. table 8-14. phase lock loop characteristics symbol parameter conditions min. typ. max. unit f out vco output frequency 80 240 mhz f in input frequency 4 16 mhz i pll current consumption active mode f vco @80 mhz 240 a active mode f vco @240 mhz 600 t startup startup time, from enabling the pll until the pll is locked wide bandwith mode disabled 15 s wide bandwith mode enabled 45 table 8-15. internal 120mhz rc oscillator characteristics symbol parameter conditions min typ max unit f out output frequency (1) 88 120 152 mhz i rc120m current consumption 1.85 ma t startup startup time 3s table 8-16. system rc oscillator characteristics symbol parameter conditions min typ max unit f out output frequency calibrated point ta = 85c 110 115.2 116 khz ta = 25c 105 109 115 khz ta = -40c 100 104 108 khz table 8-17. maximum operating frequency flash wait states maximum operating frequency 148mhz 024mhz
47 32133d?11/2011 uc3d 8.9 analog characteristics 8.9.1 voltage regulator characteristics 8.9.1.1 electrical characteristics 8.9.1.2 decoupling requirements table 8-18. flash characteristics symbol parameter conditions min typ max unit t fpp page programming time f clk_hsb = 48mhz 5 ms t fpe page erase time 5 t ffp fuse programming time 1 t fea full chip erase time (ea) 6 t fce jtag chip erase time (chip_erase) f clk_hsb = 115khz 310 table 8-19. flash endurance and data retention symbol parameter conditions min typ max unit n farray array endurance (write/page) 100k cycles n ffuse general purpose fu ses endurance (write/bit) 10k cycles t ret data retention 15 years table 8-20. electrical characteristics symbol parameter condi tion min typ max units v vddin input voltage range 3 3.3 3.6 v v vddcore output voltage v vddin >= 3v 1.75 1.8 1.85 v output voltage accuracy i out = 0.1ma to 100ma, v vddin >3v 2% i out dc output current v vddin =3.3v 100 ma i vreg static current of internal regulator low power mode 10 a table 8-21. decoupling requirements symbol parameter condition typ techno. units c in1 input regulator capacitor 1 1 npo nf
48 32133d?11/2011 uc3d 8.9.2 adc characteristics c in2 input regulator capacitor 2 4.7 x7r nf c out1 output regulator capacitor 1 470 npo nf c out2 output regulator capacitor 2 2.2 x7r f table 8-21. decoupling requirements symbol parameter condition typ techno. units table 8-22. channel conversion time and adc clock parameter conditions min. typ. max. unit adc clock frequency 10-bit resolution mode 5 mhz 8-bit resolution mode 8 mhz startup time return from idle mode 20 s track and hold acquisition time 600 ns conversion time adc clock = 5 mhz 2 s adc clock = 8 mhz 1.25 s throughput rate adc clock = 5 mhz 384 (1) 1. corresponds to 13 clock cycles: 3 clock cycles for track a nd hold acquisition time and 10 clock cycles for conversion. ksps adc clock = 8 mhz 533 (2) 2. corresponds to 15 clock cycles: 5 clock cycles for track a nd hold acquisition time and 10 clock cycles for conversion. ksps table 8-23. adc power consumption parameter conditions min. typ. max. unit current consumption on vddana (1) 1. including internal re ference input current on 13 samples with adc clock = 5 mhz 1.25 ma table 8-24. analog inputs parameter conditions min. typ. max. unit input voltage range 0 vddana v input leakage current 1a input capacitance 7pf input resistance 370 810 ohm table 8-25. transfer characteristics in 8-bit mode parameter conditions min. typ. max. unit resolution 8bit absolute accuracy adc clock = 5 mhz 0.8 lsb adc clock = 8 mhz 1.5 lsb integral non-linearity adc clock = 5 mhz 0.35 0.5 lsb adc clock = 8 mhz 0.5 1.0 lsb
49 32133d?11/2011 uc3d 8.9.3 bod the values in table 8-27 describe the values of the bodlev el in the flash general purpose fuse register. differential non-linearity adc clock = 5 mhz 0.3 0.5 lsb adc clock = 8 mhz 0.5 1.0 lsb offset error adc clock = 5 mhz -0.5 0.5 lsb gain error adc clock = 5 mhz -0.5 0.5 lsb table 8-26. transfer characteristics in 10-bit mode parameter conditions min. typ. max. unit resolution 10 bit absolute accuracy adc clock = 5 mhz 3 lsb integral non-linearity adc clock = 5 mhz 1.5 2 lsb differential non-linearity adc clock = 5 mhz 1 2 lsb adc clock = 2.5 mhz 0.6 1 lsb offset error adc clock = 5 mhz -2 2 lsb gain error adc clock = 5 mhz -2 2 lsb table 8-25. transfer characteristics in 8-bit mode parameter conditions min. typ. max. unit table 8-27. bodlevel values bodlevel value min typ max units 000000b (00) 1.44 v 010111b (23) 1.52 v 011111b (31) 1.61 v 100111b (39) 1.71 v table 8-28. bod characteristics symbol parameter condition min typ max units v hyst bod hysteresis t=25c 10 mv t det detection time time with vddcore < bodlevel necessary to generate a reset signal 1s i bod current consumption 16 a t startup startup time 5 s
50 32133d?11/2011 uc3d 8.9.4 reset sequence figure 8-3. mcu cold start-up r eset_n tied to vddin table 8-29. electrical characteristics symbol parameter conditions min. typ. max. unit v ddrr vddcore rise rate to ensure power- on-reset 2.5 v/ms v ddfr vddcore fall rate to ensure power- on-reset 0.01 400 v/ms v por+ rising threshold voltage: voltage up to which device is kept under reset by por on rising vddcore rising vddcore: v restart -> v por+ 1.4 1.55 1.65 v v por- falling threshold voltage: voltage when por resets device on falling vddcore falling vddcore: 1.8v -> v por+ 1.2 1.3 1.4 v v restart on falling vddcore, voltage must go down to this value before supply can rise again to ensure reset signal is released at v por+ falling vddcore: 1.8v -> v restart -0.1 0.5 v t por minimum time with vddcore < v por- falling vddcore: 1.8v -> 1.1v 15 s t rst time for reset signal to be propagated to system 200 400 s t ssu1 time for cold syst em startup: time for cpu to fetch its first instruction (rcosc not calibrated) 480 960 s t ssu2 time for hot system startup: time for cpu to fetch its first instruction (rcosc calibrated) 420 s v por+ vddcore internal mcu reset t ssu1 internal por reset v por- t por t rst reset_n v restart
51 32133d?11/2011 uc3d figure 8-4. mcu cold start-up rese t_n externally driven figure 8-5. mcu hot start-up in dual supply configuration, the power up sequence must be carefully managed to ensure a safe startup of the device in all conditions. the power up sequence must ensure that the inte rnal logic is safely powered when the internal reset (power on reset) is released and that the internal flash logic is safely powered when the cpu fetch the first instructions. therefore vddcore rise rate (v ddrr) must be equal or superi or to 2.5v/ms and vddio must reach vddio mini value before 500 us (< trst + tssu1) after vddcore has reached v por+ min value. v por+ vddcore internal mcu reset t ssu1 internal por reset v por- t por t rst reset_n v restart vddcore internal mcu reset t ssu2 reset_n bod reset wdt reset
52 32133d?11/2011 uc3d figure 8-6. dual supply configuration 8.9.5 reset_n characteristics 8.10 usb transceiver characteristics 8.10.1 electrical characteristics the usb on-chip buffers comply with the univ ersal serial bus (usb) v2.0 standard. all ac parameters related to these buffers can be foun d within the usb 2.0 elec trical specifications. v d d r r 2 . 5 v / m s m i n i m u m vpor+ min vddio min <500us vddio vddcore internal por (active low ) trst tssu1 first instruction fetched in flash table 8-30. reset_n waveform parameters symbol parameter conditions min. typ. max. unit t reset reset_n minimum pulse width 10 ns electrical parameters symbol parameter conditions min. typ. max. unit r ext recommended external usb series resistor in series with each usb pin with 5% 39
53 32133d?11/2011 uc3d 9. mechanical characteristics 9.1 thermal considerations 9.1.1 thermal data table 9-1 summarizes the thermal resistance data depending on the package. 9.1.2 junction temperature the average chip-junction temperature, t j , in c can be obtained from the following: 1. 2. where: ? ja = package thermal resistance, junction-to-ambient (c/w), provided in table 9-1 . ? jc = package thermal resistance, junction-to-case thermal resistance (c/w), provided in table 9-1 . ? heat sink = cooling device thermal resistance (c/w), provided in the device datasheet. ?p d = device power consumption (w) estimated from data provided in the section 8.5 on page 38 . ?t a = ambient temperature (c). from the first equation, the user can derive the estimated lifetime of the chip and decide if a cooling device is necessary or not. if a coolin g device is to be fitted on the chip, the second equation should be used to compute the re sulting average chip-junction temperature t j in c. table 9-1. thermal resistance data symbol parameter condition package typ unit ja junction-to-ambient thermal resistance still air tqfp48 65.1 ? c/w jc junction-to-case thermal resistance tqfp48 23.4 ja junction-to-ambient thermal resistance still air qfn48 29.2 ? c/w jc junction-to-case thermal resistance qfn48 2.7 ja junction-to-ambient thermal resistance still air tqfp64 63.1 ? c/w jc junction-to-case thermal resistance tqfp64 23.0 ja junction-to-ambient thermal resistance still air qfn64 26.9 ? c/w jc junction-to-case thermal resistance qfn64 2.7 t j t a p d ja () + = t j t a p ( d ( heatsink jc )) ++ =
54 32133d?11/2011 uc3d 9.2 package drawings figure 9-1. tqfp-64 package drawing table 9-2. device and package maximum weight weight 300 mg table 9-3. package characteristics moisture sensitivity level jedec j-std-20d-msl3 table 9-4. package reference jedec drawing reference ms-026 jesd97 classification e3
55 32133d?11/2011 uc3d figure 9-2. tqfp-48 package drawing table 9-5. device and package maximum weight weight 100 mg table 9-6. package characteristics moisture sensitivity level jedec j-std-20d-msl3 table 9-7. package reference jedec drawing reference ms-026 jesd97 classification e3
56 32133d?11/2011 uc3d figure 9-3. qfn-48 package drawing table 9-8. device and package maximum weight weight 100 mg table 9-9. package characteristics moisture sensitivity level jedec j-std-20d-msl3 table 9-10. package reference jedec drawing reference m0-220 jesd97 classification e3
57 32133d?11/2011 uc3d figure 9-4. qfn-64 package drawing table 9-11. device and package maximum weight weight 200 mg table 9-12. package characteristics moisture sensitivity level jedec j-std-20d-msl3 table 9-13. package reference jedec drawing reference m0-220 jesd97 classification e3
58 32133d?11/2011 uc3d 9.3 soldering profile table 9-14 gives the recommended soldering profile from j-std-20. a maximum of three reflow passes is allowed per component. table 9-14. soldering profile profile feature green package average ramp-up rate (217c to peak) 3c/s max preheat temperature 175c 25c 150c min, 200c max temperature maintained above 217c 60-150 s time within 5 ? c of actual peak temperature 30 s peak temperature range 260c ramp-down rate 6c/s max time 25 ? c to peak temperature 8 minutes max
59 32133d?11/2011 uc3d 10. ordering information table 10-1. ordering information device ordering code carrier type package package type temperature operating range atuc128d3 atuc128d3-a2ut tray tqfp 64 jesd97 classification e3 industrial (-40 ? c to 85 ? c) atuc128d3-a2ur tape & reel tqfp 64 atuc128d3-z2ut tray qfn 64 atuc128d3-z2ur tape & reel qfn 64 atuc128d4 atuc128d4-aut tray tqfp 48 atuc128d4-aur tape & reel tqfp 48 atuc128d4-z1ut tray qfn 48 atuc128d4-z1ur tape & reel qfn 48 atuc64d3 atuc64d3-a2ut tray tqfp 64 jesd97 classification e3 industrial (-40 ? c to 85 ? c) atuc64d3-a2ur tape & reel tqfp 64 atuc64d3-z2ut tray qfn 64 atuc64d3-z2ur tape & reel qfn 64 atuc64d4 atuc64d4-aut tray tqfp 48 atuc64d4-aur tape & reel tqfp 48 atuc64d4-z1ut tray qfn 48 atuc64d4-z1ur tape & reel qfn 48
60 32133d?11/2011 uc3d 11. errata 11.1 rev. c 11.1.1 spi 1. spi disable does not work in slave mode spi disable does not work in slave mode. fix/workaround read the last received data, then perform a so ftware reset by writing a one to the software reset bit in the control register (cr.swrst). 2. pcs field in receive data register is inaccurate the pcs field in the spi_rdr register does no t accurately indicate from which slave the received data is read. fix/workaround none. 3. 8 spi data transfer hangs with csr0.csaat==1 and mr.modfdis==0 when csr0.csaat==1 and mode fault detection is enabled (mr.modfdis==0), the spi module will not start a data transfer. fix/workaround disable mode fault detection by writing a one to mr.modfdis. 4. disabling spi has no effect on the sr.tdre bit disabling spi has no effect on the sr.tdre bit whereas the write data command is filtered when spi is disabled. writing to tdr when spi is disabled will not clear sr.tdre. if spi is disabled during a pdca transfer, the pdca will continue to write data to tdr until its buffer is empty, and this data will be lost. fix/workaround disable the pdca, add two nops, and disable t he spi. to continue the transfer, enable the spi and pdca. 5. spi bad serial clock generation on 2nd chip_select when scbr=1, cpol=1, and ncpha=0 when multiple chip selects (cs) are in use, if one of the baudrates equal 1 while one (csrn.scbr=1) of the others do not equal 1, and csrn.cpol=1 and csrn.ncpha=0, then an additional pulse will be genera ted on sck. fix/workaround when multiple cs are in use, if one of the b audrates equals 1, the othe rs must also equal 1 if csrn.cpol=1 and csrn.ncpha=0. 6. timer counter 7. channel chaining skips first pulse for upper channel when chaining two channels using the block mode register, the first pulse of the clock between the channels is skipped. fix/workaround configure the lower channel with ra = 0x1 and rc = 0x2 to produce a dummy clock cycle for the upper channel. after the dummy cyc le has been generated, indicated by the sr.cpcs bit, reconfigure the ra and rc registers for the lower channel with the real values.
61 32133d?11/2011 uc3d 11.1.2 twis 1. clearing the nak bit before the btf bit is set locks up the twi bus when the twis is in transmit mode, clearing the nak received (nak) bit of the status reg- ister (sr) before the end of the acknowledge/not ackn owledge cycle will cause the twis to attempt to continue transmitting data, thus locking up the bus. fix/workaround clear sr.nak only after the byte transfer fini shed (btf) bit of the same register has been set. 11.1.3 pwma 1. the sr.ready bit cannot be cleared by writing to scr.ready the ready bit in the status register will not be cleared when writing a one to the corre- sponding bit in the status clear register. th e ready bit will be cleared when the busy bit is set. fix/workaround disable the ready interrupt in the interrupt handler when receiving the interrupt. when an operation that triggers the busy/ready bit is star ted, wait until the ready bit is low in the sta- tus register before enabling the interrupt. 11.2 rev. b 11.2.1 power manager 1. twis may not wake the device from sleep mode if the cpu is put to a sleep m ode (except idle and frozen) directly after a twi start condi- tion, the cpu may not wake upon a twis address match. the request is nacked. fix/workaround when using the twi address match to wake t he device from sleep, do not switch to sleep modes deeper than frozen. another solution is to enable asynchronous eic wake on the twis clock (twck) or twis data (twd) pi ns, in order to wake the system up on bus events. 11.2.2 spi 1. spi disable does not work in slave mode spi disable does not work in slave mode. fix/workaround read the last received data, then perform a so ftware reset by writing a one to the software reset bit in the control register (cr.swrst). 2. pcs field in receive data register is inaccurate the pcs field in the spi_rdr register does no t accurately indicate from which slave the received data is read. fix/workaround none. 3. 8 spi data transfer hangs with csr0.csaat==1 and mr.modfdis==0 when csr0.csaat==1 and mode fault detection is enabled (mr.modfdis==0), the spi module will not start a data transfer. fix/workaround disable mode fault detection by writing a one to mr.modfdis.
62 32133d?11/2011 uc3d 4. disabling spi has no effect on the sr.tdre bit disabling spi has no effect on the sr.tdre bit whereas the write data command is filtered when spi is disabled. writing to tdr when spi is disabled will not clear sr.tdre. if spi is disabled during a pdca transfer, the pdca will continue to write data to tdr until its buffer is empty, and this data will be lost. fix/workaround disable the pdca, add two nops, and disable t he spi. to continue the transfer, enable the spi and pdca. 5. spi bad serial clock generation on 2nd chip_select when scbr=1, cpol=1, and ncpha=0 when multiple chip selects (cs) are in use, if one of the baudrates equal 1 while one (csrn.scbr=1) of the others do not equal 1, and csrn.cpol=1 and csrn.ncpha=0, then an additional pulse will be genera ted on sck. fix/workaround when multiple cs are in use, if one of the b audrates equals 1, the othe rs must also equal 1 if csrn.cpol=1 and csrn.ncpha=0. 6. timer counter 7. channel chaining skips first pulse for upper channel when chaining two channels using the block mode register, the first pulse of the clock between the channels is skipped. fix/workaround configure the lower channel with ra = 0x1 and rc = 0x2 to produce a dummy clock cycle for the upper channel. after the dummy cyc le has been generated, indicated by the sr.cpcs bit, reconfigure the ra and rc registers for the lower channel with the real values. 11.2.3 twis 1. clearing the nak bit before the btf bit is set locks up the twi bus when the twis is in transmit mode, clearing the nak received (nak) bit of the status reg- ister (sr) before the end of the acknowledge/not ackn owledge cycle will cause the twis to attempt to continue transmitting data, thus locking up the bus. fix/workaround clear sr.nak only after the byte transfer fini shed (btf) bit of the same register has been set. 11.2.4 pwma 1. the sr.ready bit cannot be cleared by writing to scr.ready the ready bit in the status register will not be cleared when writing a one to the corre- sponding bit in the status clear register. th e ready bit will be cleared when the busy bit is set. fix/workaround disable the ready interrupt in the interrupt handler when receiving the interrupt. when an operation that triggers the busy/ready bit is star ted, wait until the ready bit is low in the sta- tus register before enabling the interrupt.
63 32133d?11/2011 uc3d 11.3 rev. a 11.3.1 gpio 1. clearing interrupt flags can mask other interrupts when clearing interrupt fl ags in a gpio port, interrupts on other pins of that port, happening in the same clock cycle will not be registered. fix/workaround read the pvr register of the port before and af ter clearing the interrupt to see if any pin change has happened while clearing the interr upt. if any change occurred in the pvr between the reads, they must be treated as an interrupt. 11.3.2 power manager 1. clock failure detector (cfd) can be issued while turning off the cfd while turning off the cf d, the cfd bit in the status register (sr) can be set. this will change the main cl ock source to rcsys. fix/workaround solution 1: enable cfd in terrupt. if cfd interrupt is issues after turning off the cfd, switch back to original main clock source. solution 2: only turn off the cfd while running the main clock on rcsys. 2. requesting clocks in idle sleep modes will mask all other pb clocks than the requested in idle or frozen sleep mode, all the pb clocks will be froz en if the twis or the ast needs to wake the cpu up. fix/workaround disable the twis or the ast before entering idle or frozen sleep mode. 3. spi 4. spi disable does not work in slave mode spi disable does not work in slave mode. fix/workaround read the last received data, then perform a so ftware reset by writing a one to the software reset bit in the control register (cr.swrst). 5. pcs field in receive data register is inaccurate the pcs field in the spi_rdr register does no t accurately indicate from which slave the received data is read. fix/workaround none. 6. 8 spi data transfer hangs with csr0.csaat==1 and mr.modfdis==0 when csr0.csaat==1 and mode fault detection is enabled (mr.modfdis==0), the spi module will not start a data transfer. fix/workaround disable mode fault detection by writing a one to mr.modfdis. 7. disabling spi has no effect on the sr.tdre bit disabling spi has no effect on the sr.tdre bit whereas the write data command is filtered when spi is disabled. writing to tdr when spi is disabled will not clear sr.tdre. if spi is disabled during a pdca transfer, the pdca will continue to write data to tdr until its buffer is empty, and this data will be lost.
64 32133d?11/2011 uc3d fix/workaround disable the pdca, add two nops, and disable t he spi. to continue the transfer, enable the spi and pdca. 8. spi bad serial clock generation on 2nd chip_select when scbr=1, cpol=1, and ncpha=0 when multiple chip selects (cs) are in use, if one of the baudrates equal 1 while one (csrn.scbr=1) of the others do not equal 1, and csrn.cpol=1 and csrn.ncpha=0, then an additional pulse will be genera ted on sck. fix/workaround when multiple cs are in use, if one of the b audrates equals 1, the othe rs must also equal 1 if csrn.cpol=1 and csrn.ncpha=0. 9. i/o pins 10. current leakage through pads pa09, pa10 and pb16 pads pa09 (twi), pa10 (twi) and pb16 (usb vbus) are not fully 5v tolerant. a leakage current can be observed when a 5v voltage is applied onto those pads inputs. their behav- ior is normal at 3.3v fix/workaround none for pads pa09 and pa10. a voltage divider can be used for pb16 (vbus) to bring the input voltage down into the 3.3v range. 11. current leakage through pads pb13, pb17 and pb18 for applications in which uc3d is considered as a drop in replacement solution to uc3b, pads pb13, pb17 and pb18 can no longer be used as vddcore supply pins.maintaining a 1.8v voltage on those inputs will however lead to a current over consumption through the pins. fix/workaround do not connect pb13, pb17 and pb18 when using uc3d as a dr op in replacement for a uc3b specific application. 12. io drive strength mismatch with uc3b specification for pads pa11, pa12, pa18 and pa19 for applications in which uc3d is considered as a drop in replacement solution to uc3b, gpios pa11, pa12, pa18 and pa19 are not co mpletely compatible in terms of drive strength. those pads have a 8 ma current capability on uc3b, while this is limited to 4 ma in uc3d. fix/workaround none. 13. wdt 14. clearing the watchdog timer (wdt) counter in second half of timeout period will issue a watchdog reset if the wdt counter is cleared in the second half of the ti meout period, the wdt will immedi- ately issue a watchdog reset. fix/workaround use twice as long timeout peri od as needed and clear the wdt c ounter within the first half of the timeout period. if the wdt counter is cl eared after the first half of the timeout period, you will get a watchdog reset immediately. if the wdt counter is not clea red at all, the time before the reset will be tw ice as long as needed.
65 32133d?11/2011 uc3d 11.3.3 timer counter 1. channel chaining skips first pulse for upper channel when chaining two channels using the block mode register, the first pulse of the clock between the channels is skipped. fix/workaround configure the lower channel with ra = 0x1 and rc = 0x2 to produce a dummy clock cycle for the upper channel. after the dummy cyc le has been generated, indicated by the sr.cpcs bit, reconfigure the ra and rc registers for the lower channel with the real values. 11.3.4 twis 1. twis stretch on address match error when the twis stretches twck due to a slav e address match, it also holds twd low for the same duration if it is to be receiving da ta. when twis releases twck, it releases twd at the same time. this can cause a twi timing violation. fix/workaround none. 2. clearing the nak bit before the btf bit is set locks up the twi bus when the twis is in transmit mode, clearing the nak received (nak) bit of the status reg- ister (sr) before the end of the acknowledge/not ackn owledge cycle will cause the twis to attempt to continue transmitting data, thus locking up the bus. fix/workaround clear sr.nak only after the byte transfer fini shed (btf) bit of the same register has been set. 3. cat 4. cat module does not terminate qtouch burst on detect the cat module does not terminate a qtouch burst when the detection voltage is reached on the sense capacitor. this can ca use the sense capacitor to be charged more than necessary. depending on the dielectric abso rption characteristics of the capacitor, this can lead to unstable measurements. fix/workaround use the minimum possible value for the max field in the atcfg1, tg0cfg1, and tg1cfg1 registers. 11.3.5 pwma 1. the sr.ready bit cannot be cleared by writing to scr.ready the ready bit in the status register will not be cleared when writing a one to the corre- sponding bit in the status clear register. th e ready bit will be cleared when the busy bit is set. fix/workaround disable the ready interrupt in the interrupt handler when receiving the interrupt. when an operation that triggers the busy/ready bit is star ted, wait until the ready bit is low in the sta- tus register before enabling the interrupt. 2.
66 32133d?11/2011 uc3d 12. datasheet revision history please note that the referring page numbers in th is section are referred to this document. the referring revision in this section ar e referring to the document revision. 12.1 rev. a ? 11/2009 12.2 rev. b ? 04/2011 12.3 rev. c ? 07/2011 12.4 rev. d ? 11/2011 1. initial revision. 1. minor. 1. final revision. 1. 2. adding errata for silicon revision c . fixed pllopt field description in scif chapter
67 32133d?11/2011 uc3d table of contents features .............. ................ ................ ............... .............. .............. ............ 1 1 description ............ .............. .............. ............... .............. .............. ............ 3 2 overview ................ .............. .............. ............... .............. .............. ............ 5 2.1 block diagram ...................................................................................................5 2.2 configuration summary .....................................................................................6 3 package and pinout ............ .............. ............... .............. .............. ............ 7 3.1 package .............................................................................................................7 3.2 peripheral multiplexing on i/o lines . ..................................................................8 4 signal descriptions ............ .............. ............... .............. .............. .......... 12 4.1 i/o line considerations ...................................................................................14 4.2 power considerations .....................................................................................15 5 processor and architecture .... ................ ................. ................ ............. 20 5.1 features ..........................................................................................................20 5.2 avr32 architecture ..... ....................................................................................20 5.3 the avr32uc cpu ........................................................................................21 5.4 programming model ........................................................................................25 5.5 exceptions and interrupts ................................................................................28 6 memories ............... .............. .............. ............... .............. .............. .......... 33 6.1 embedded memories ......................................................................................33 6.2 physical memory map .....................................................................................33 6.3 peripheral address map ..................................................................................33 6.4 cpu local bus mapping .................................................................................35 7 boot sequence ........... ................ ................. ................ ................. .......... 36 7.1 starting of clocks ............................................................................................36 7.2 fetching of initial instructions ..........................................................................36 8 electrical characteristics ... .............. ............... .............. .............. .......... 37 8.1 disclaimer ........................................................................................................37 8.2 absolute maximum ratings* .............. .............................................................37 8.3 supply characteristics .....................................................................................37 8.4 maximum clock frequencies ..........................................................................37 8.5 power consumption ........................................................................................38 8.6 i/o pin characteristics .....................................................................................41
68 32133d?11/2011 uc3d 8.7 oscillator characteristics .................................................................................44 8.8 flash characteristics .......................................................................................46 8.9 analog characteristics .....................................................................................47 8.10 usb transceiver characteristics .....................................................................52 9 mechanical characteristics ..... ................ ................. ................ ............. 53 9.1 thermal considerations ..................................................................................53 9.2 package drawings ...........................................................................................54 9.3 soldering profile ..............................................................................................58 10 ordering information .......... .............. ............... .............. .............. .......... 59 11 errata ............. ................ ................. ................ ................. .............. .......... 60 11.1 rev. c ..............................................................................................................60 11.2 rev. b ..............................................................................................................61 11.3 rev. a ..............................................................................................................63 12 datasheet revision history .. .............. .............. .............. .............. ........ 66 12.1 rev. a ? 11/2009 .............................................................................................66 12.2 rev. b ? 04/2011 .............................................................................................66 12.3 rev. c ? 07/2011 .............................................................................................66 12.4 rev. d ? 11/2011 .............................................................................................66 table of contents............... ................ ............... .............. .............. .......... 67
32133d?11/2011 ? 2011 atmel corporation. all rights reserved. atmel ? , atmel logo and combinations thereof, avr ? and others are registered trademarks or trademarks of atmel corporation or its subsidiaries. other terms and product names may be trademarks of others. headquarters international atmel corporation 2325 orchard parkway san jose, ca 95131 usa tel: 1(408) 441-0311 fax: 1(408) 487-2600 atmel asia unit 1-5 & 16, 19/f bea tower, millennium city 5 418 kwun tong road kwun tong, kowloon hong kong tel: (852) 2245-6100 fax: (852) 2722-1369 atmel europe le krebs 8, rue jean-pierre timbaud bp 309 78054 saint-quentin-en- yvelines cedex france tel: (33) 1-30-60-70-00 fax: (33) 1-30-60-71-11 atmel japan 9f, tonetsu shinkawa bldg. 1-24-8 shinkawa chuo-ku, tokyo 104-0033 japan tel: (81) 3-3523-3551 fax: (81) 3-3523-7581 product contact web site www.atmel.com technical support avr32@atmel.com sales contact www.atmel.com/contacts literature requests www.atmel.com/literature 115413 disclaimer: the information in this document is provided in connection wi th atmel products. no license, expr ess or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of atmel products. except as set forth in atmel?s terms and condi- tions of sale located on atmel?s web site, atmel assumes no li ability whatsoever and disclaims any express, implied or statutor y warranty relating to its products including , but not limited to, the implied warranty of merchantability, fitness for a particu lar purpose, or non-infringement. in no event shall atmel be liable for any direct, indire ct, consequential, punitive, special or i nciden- tal damages (including, without li mitation, damages for loss of profits, business interruption, or loss of information) arising out of the use or inability to use this document, even if atmel has been advised of the possibility of such damages. atmel makes no representations or warranties with respect to the accuracy or comp leteness of the contents of th is document and reserves the rig ht to make changes to specifications and product descriptions at any time without notice. atmel does not make any commitment to update the information contained her ein. unless specifically provided otherwise, atmel products are not suitable for, and shall not be used in, automotive applications. atmel?s products are not int ended, authorized, or warranted for use as components in applications intended to support or sustain life.


▲Up To Search▲   

 
Price & Availability of ATUC128D3-14

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X